#define _CRT_SECURE_NO_WARNINGS
#include"stackANDqueue.h"
#include<iostream>
namespace sj
{
	void test01()
	{
		stack<int> s1;
		s1.push(1);
		s1.push(2);
		s1.push(3);
		s1.push(4);
		s1.push(5);
		for (int i = 0; i < s1.size(); i++)
		{
			std::cout << s1[i];
		}
		cout << endl;
		cout << s1.top();
		cout << endl;
		s1.pop();
		for (int i = 0; i < s1.size(); i++)
		{
			std::cout << s1[i];
		}
	}
	void test02()
	{
		queue<int> s1;
		s1.push(1);
		s1.push(2);
		s1.push(3);
		s1.push(4);
		s1.push(5);
		for (int i = 0; i < s1.size(); i++)
		{
			std::cout << s1[i];
		}
		cout << endl;
		cout << s1.back();
		cout << endl;
		cout << s1.front();
		cout << endl;
		s1.pop();
		for (int i = 0; i < s1.size(); i++)
		{
			std::cout << s1[i];
		}

	}
}

int main()
{
	//sj::test01();
	sj::test02();
	return 0;
}